import request from '../utils/request'

export function gethazard() {
  return request({
    url: '/hazard/list',
    method: 'get'
  })
}

export function deletehazard(data) {
  return request({
    url: '/hazard/delete',
    method: 'post',
    data
  })
}

export function edithazard(data) {
  return request({
    url: '/hazard/edit',
    method: 'post',
    data
  })
}

export function addhazard(data) {
  return request({
    url: '/hazard/add',
    method: 'post',
    data
  })
}

export function getrisk() {
  return request({
    url: '/hazard/risk',
    method: 'get'
  })
}
export function finduser(data) {
  return request({
    url: '/hazard/info',
    method: 'post',
    data
  })
}